package kevin.workplan.web.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import kevin.workplan.web.controller.base.BaseController;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
@RequestMapping("/")
public class LoginController extends BaseController {

	
	@RequestMapping("login")
	public String login(HttpServletRequest request,
			HttpServletResponse response, HttpSession session){
		String a = request.getParameter("a");
		if("login".equals(a)) {
			// 登录操作
			return "redirect:work/index";
		} else {
			return "login";
		}
	}
}
